<%@page import="com.zoio.saike.model.*" %>

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ include file="/commons/taglibs.jsp" %>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<rapid:override name="head">
	<title><%=AmFile.TABLE_ALIAS%> 维护</title>
	<script type="text/javascript" >
		function addOrEdit(url) {
			showDialogByUrl(url,'<%=AmFile.TABLE_ALIAS%>',650,600);
        }
		
		document.onkeydown = function(){ 
			if (event.keyCode == 13) 
			{ 
				document.queryForm.action='${ctx}/amfile';
				document.queryForm.submit();
			} 
		};
	</script>
</rapid:override>
<rapid:override name="toolbar">
	<div style="padding-top:5px;">
		<table width="830">
		<tr>
			<td style="width:50%;">
			<image src="${ctx}/styles/images/btnNew.png" class="stdButton" onclick="javascript:addOrEdit('${ctx}/amfile/new')"/>
			<image src="${ctx}/styles/images/btnDel.png" class="stdButton" onclick="javascript:doRestBatchDelete('${ctx}/amfile','items',document.forms.queryForm)"/>
			<image src="${ctx}/styles/images/btnRefresh.png" class="stdButton" onclick="javascript:location.reload();"/>
			</td>
		</tr>
		</table>	
	</div>
</rapid:override>
<rapid:override name="content">
	<div>
	<table id="rounded-corner" class="gridBody" style="width:823;">
		  <thead>
			  <tr id="thline">
				<th scope="col" style="width:1px;"><input type="checkbox" onclick="setAllCheckboxState('items',this.checked)"></th>
				<th scope="col" sortColumn="fileDate" ><%=AmFile.ALIAS_FILE_DATE%></th>
				<th scope="col" sortColumn="creatorId" ><%=AmFile.ALIAS_CREATOR_ID%></th>
				<th scope="col" sortColumn="miJiNo" ><%=AmFile.ALIAS_MI_JI_NO%></th>
				<th scope="col" sortColumn="personName" ><%=AmFile.ALIAS_PERSON_NAME%></th>
				<th scope="col" sortColumn="boxNo" ><%=AmFile.ALIAS_BOX_NO%></th>
				<th scope="col" sortColumn="stype" ><%=AmFile.ALIAS_STYPE%></th>
				<th scope="col" sortColumn="pagesAmount" ><%=AmFile.ALIAS_PAGES_AMOUNT%></th>
				<th scope="col" sortColumn="urgency" ><%=AmFile.ALIAS_URGENCY%></th>
				<th scope="col" sortColumn="isLocked" ><%=AmFile.ALIAS_IS_LOCKED%></th>
				<th scope="col" sortColumn="textEntry" ><%=AmFile.ALIAS_TEXT_ENTRY%></th>
				<th scope="col" sortColumn="createTime" ><%=AmFile.ALIAS_CREATE_TIME%></th>
				<th scope="col" sortColumn="baoGuanQi" ><%=AmFile.ALIAS_BAO_GUAN_QI%></th>
				<th scope="col" sortColumn="vectorForm" ><%=AmFile.ALIAS_VECTOR_FORM%></th>
				<th scope="col" sortColumn="quanZongNo" ><%=AmFile.ALIAS_QUAN_ZONG_NO%></th>
				<th scope="col" sortColumn="jianNo" ><%=AmFile.ALIAS_JIAN_NO%></th>
				<th scope="col" sortColumn="zeRenZhe" ><%=AmFile.ALIAS_ZE_REN_ZHE%></th>
				<th scope="col" sortColumn="fenLeiNo" ><%=AmFile.ALIAS_FEN_LEI_NO%></th>
				<th scope="col" sortColumn="inputPerson" ><%=AmFile.ALIAS_INPUT_PERSON%></th>
				<th scope="col" sortColumn="electronicDoc" ><%=AmFile.ALIAS_ELECTRONIC_DOC%></th>
				<th scope="col" sortColumn="jiNo" ><%=AmFile.ALIAS_JI_NO%></th>
				<th scope="col" sortColumn="modifyId" ><%=AmFile.ALIAS_MODIFY_ID%></th>
				<th scope="col" sortColumn="fileTypeId" ><%=AmFile.ALIAS_FILE_TYPE_ID%></th>
				<th scope="col" sortColumn="miJiSelect" ><%=AmFile.ALIAS_MI_JI_SELECT%></th>
				<th scope="col" sortColumn="orgId" ><%=AmFile.ALIAS_ORG_ID%></th>
				<th scope="col" sortColumn="fileName" ><%=AmFile.ALIAS_FILE_NAME%></th>
				<th scope="col" sortColumn="description" ><%=AmFile.ALIAS_DESCRIPTION%></th>
				<th scope="col" sortColumn="fenAmount" ><%=AmFile.ALIAS_FEN_AMOUNT%></th>
				<th scope="col" sortColumn="attachment" ><%=AmFile.ALIAS_ATTACHMENT%></th>
				<th scope="col" sortColumn="companyId" ><%=AmFile.ALIAS_COMPANY_ID%></th>
				<th scope="col" sortColumn="inputDate" ><%=AmFile.ALIAS_INPUT_DATE%></th>
				<th scope="col" sortColumn="modifyTime" ><%=AmFile.ALIAS_MODIFY_TIME%></th>
				<th scope="col" sortColumn="archiveYear" ><%=AmFile.ALIAS_ARCHIVE_YEAR%></th>
				<th scope="col" sortColumn="sorder" ><%=AmFile.ALIAS_SORDER%></th>
				<th scope="col" sortColumn="isValid" ><%=AmFile.ALIAS_IS_VALID%></th>
				<th scope="col" sortColumn="fileType" ><%=AmFile.ALIAS_FILE_TYPE%></th>
				<th scope="col" sortColumn="procInstId" ><%=AmFile.ALIAS_PROC_INST_ID%></th>
				<th scope="col" sortColumn="numberNo" ><%=AmFile.ALIAS_NUMBER_NO%></th>
				<th scope="col" sortColumn="keyword" ><%=AmFile.ALIAS_KEYWORD%></th>
				<th scope="col" sortColumn="processDefId" ><%=AmFile.ALIAS_PROCESS_DEF_ID%></th>
				<th scope="col" sortColumn="formPath" ><%=AmFile.ALIAS_FORM_PATH%></th>
				<th scope="col">操作</th>
			  </tr>
		  </thead>
		  <tbody>
			  <tr id="trsearch">
			   	<td style="padding: 0px 8px;" align="right"></td>
			   	<td style="padding: 0px 8px;"><input value="${query.fileDate}" id="fileDate" name="fileDate" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.creatorId}" id="creatorId" name="creatorId" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.miJiNo}" id="miJiNo" name="miJiNo" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.personName}" id="personName" name="personName" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.boxNo}" id="boxNo" name="boxNo" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.stype}" id="stype" name="stype" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.pagesAmount}" id="pagesAmount" name="pagesAmount" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.urgency}" id="urgency" name="urgency" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.isLocked}" id="isLocked" name="isLocked" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.textEntry}" id="textEntry" name="textEntry" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.createTime}" id="createTime" name="createTime" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.baoGuanQi}" id="baoGuanQi" name="baoGuanQi" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.vectorForm}" id="vectorForm" name="vectorForm" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.quanZongNo}" id="quanZongNo" name="quanZongNo" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.jianNo}" id="jianNo" name="jianNo" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.zeRenZhe}" id="zeRenZhe" name="zeRenZhe" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.fenLeiNo}" id="fenLeiNo" name="fenLeiNo" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.inputPerson}" id="inputPerson" name="inputPerson" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.electronicDoc}" id="electronicDoc" name="electronicDoc" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.jiNo}" id="jiNo" name="jiNo" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.modifyId}" id="modifyId" name="modifyId" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.fileTypeId}" id="fileTypeId" name="fileTypeId" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.miJiSelect}" id="miJiSelect" name="miJiSelect" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.orgId}" id="orgId" name="orgId" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.fileName}" id="fileName" name="fileName" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.description}" id="description" name="description" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.fenAmount}" id="fenAmount" name="fenAmount" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.attachment}" id="attachment" name="attachment" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.companyId}" id="companyId" name="companyId" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.inputDate}" id="inputDate" name="inputDate" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.modifyTime}" id="modifyTime" name="modifyTime" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.archiveYear}" id="archiveYear" name="archiveYear" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.sorder}" id="sorder" name="sorder" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.isValid}" id="isValid" name="isValid" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.fileType}" id="fileType" name="fileType" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.procInstId}" id="procInstId" name="procInstId" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.numberNo}" id="numberNo" name="numberNo" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.keyword}" id="keyword" name="keyword" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.processDefId}" id="processDefId" name="processDefId" size="2"/></td>
			   	<td style="padding: 0px 8px;"><input value="${query.formPath}" id="formPath" name="formPath" size="2"/></td>
			   	<td style="padding: 0px 8px;"><a href="javascript:resetAndReload('${ctx}/amfile');">清除</a></td>
			  </tr>		  
		  	  <c:forEach items="${page.result}" var="item" varStatus="status">
			  <tr>
				<td><input type="checkbox" name="items" value="${item.fileId}">${page.thisPageFirstElementNumber + status.index}</td>

<td><c:out value='${item.fileDate}'/>&nbsp;</td>
<td><c:out value='${item.creatorId}'/>&nbsp;</td>
<td><c:out value='${item.miJiNo}'/>&nbsp;</td>
<td><c:out value='${item.personName}'/>&nbsp;</td>
<td><c:out value='${item.boxNo}'/>&nbsp;</td>
<td><c:out value='${item.stype}'/>&nbsp;</td>
<td><c:out value='${item.pagesAmount}'/>&nbsp;</td>
<td><c:out value='${item.urgency}'/>&nbsp;</td>
<td><c:out value='${item.isLocked}'/>&nbsp;</td>
<td><c:out value='${item.textEntry}'/>&nbsp;</td>
<td><c:out value='${item.createTime}'/>&nbsp;</td>
<td><c:out value='${item.baoGuanQi}'/>&nbsp;</td>
<td><c:out value='${item.vectorForm}'/>&nbsp;</td>
<td><c:out value='${item.quanZongNo}'/>&nbsp;</td>
<td><c:out value='${item.jianNo}'/>&nbsp;</td>
<td><c:out value='${item.zeRenZhe}'/>&nbsp;</td>
<td><c:out value='${item.fenLeiNo}'/>&nbsp;</td>
<td><c:out value='${item.inputPerson}'/>&nbsp;</td>
<td><c:out value='${item.electronicDoc}'/>&nbsp;</td>
<td><c:out value='${item.jiNo}'/>&nbsp;</td>
<td><c:out value='${item.modifyId}'/>&nbsp;</td>
<td><c:out value='${item.fileTypeId}'/>&nbsp;</td>
<td><c:out value='${item.miJiSelect}'/>&nbsp;</td>
<td><c:out value='${item.orgId}'/>&nbsp;</td>
<td><c:out value='${item.fileName}'/>&nbsp;</td>
<td><c:out value='${item.description}'/>&nbsp;</td>
<td><c:out value='${item.fenAmount}'/>&nbsp;</td>
<td><c:out value='${item.attachment}'/>&nbsp;</td>
<td><c:out value='${item.companyId}'/>&nbsp;</td>
<td><c:out value='${item.inputDate}'/>&nbsp;</td>
<td><c:out value='${item.modifyTime}'/>&nbsp;</td>
<td><c:out value='${item.archiveYear}'/>&nbsp;</td>
<td><c:out value='${item.sorder}'/>&nbsp;</td>
<td><c:out value='${item.isValid}'/>&nbsp;</td>
<td><c:out value='${item.fileType}'/>&nbsp;</td>
<td><c:out value='${item.procInstId}'/>&nbsp;</td>
<td><c:out value='${item.numberNo}'/>&nbsp;</td>
<td><c:out value='${item.keyword}'/>&nbsp;</td>
<td><c:out value='${item.processDefId}'/>&nbsp;</td>
<td><c:out value='${item.formPath}'/>&nbsp;</td>
				<td>
					<a href="javascript:addOrEdit('${ctx}/amfile/${item.fileId}')">查看</a>&nbsp;&nbsp;
					<a href="javascript:addOrEdit('${ctx}/amfile/${item.fileId}/edit')">修改</a>&nbsp;&nbsp;
					<a href="${ctx}/amfile/${item.fileId}" onclick="doRestDelete(this,'您确认删除?');return false;">删除</a>
				</td>
			  </tr>
		  	  </c:forEach>
		  </tbody>
		  <tfoot><tr><td colspan="8" align="center">
		  
		  </td></tr></tfoot>
		</table>
	</div>
</rapid:override>

<%@ include file="/baseList.jsp" %>
